﻿
Imports System.Data

Friend Interface IDbProvider

    Property ConnectionString As String
    'Run stored proecures with and without parameters.
    Function StoredProc(ByVal spName As String, ByVal UserId As Integer) As Integer
    Function StoredProc(ByVal spName As String, ByVal params As List(Of IDataParameter), ByVal UserId As Integer) As Integer
    Function StoredProc(ByVal spName As String, ByVal result As DataTable, ByVal UserId As Integer) As Integer
    Function StoredProc(ByVal spName As String, ByVal params As List(Of IDataParameter), ByVal result As DataTable, ByVal UserId As Integer) As Integer

    ' ADODB.net stuff tools
    Function DataAdapter() As IDataAdapter
    Function DataReader() As IDataReader
    Function Parameter() As IDataParameter

End Interface
